#pragma once
#include "shape.h"
#include <math.h>

class Cone : public Shape3D
{
private:
    double baseRadius = 0;
    double height = 0;
    double slantHeight = 0;

public:
    Cone(double b, double h) : baseRadius(b), height(h)
    {
        slantHeight = sqrt(baseRadius * baseRadius + height * height);
    };
    double volume() const;
    double area() const;
};